﻿namespace Jim.K3Cloud;

/// <summary>
/// 删除
/// </summary>
[Sdk("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Delete", "删除")]
public class K3CloudDeleteRequest : ISdkRequest<K3CloudDeleteResponse> ,IK3CloudCustomRequest
{
    public string FormId { get; set; }
    /// <summary>
    /// 创建者组织内码（非必录）
    /// </summary>
    public int CreateOrgId { get; set; }
    /// <summary>
    /// 单据编码集合，数组类型，格式：[No1,No2,...]（使用编码时必录）
    /// </summary>
    public string[] Numbers { get; set; }
    /// <summary>
    /// 单据内码集合，字符串类型，格式："Id1,Id2,..."（使用内码时必录）
    /// </summary>
    public string Ids { get; set; }
    /// <summary>
    /// 是否启用网控，布尔类型，默认false（非必录）
    /// </summary>
    public bool NetworkCtrl { get; set; }

    public object QueryParams()
    {
        return new
        {
            FormId = FormId,
            Data = new {
                CreateOrgId = CreateOrgId,
                Numbers = Numbers,
                Ids = Ids,
                NetworkCtrl = NetworkCtrl
            }
        };
    }

    public void Validate()
    {
    }
}





public class K3CloudDeleteResponse : SdkResponse<List<ResponseStatusEntity>>
{
}

